package com.restaurant.application.score;

import com.nebutown.description.UnitDescription;
import com.nebutown.generation.basictype.UID;

public class ScoreDesc extends UnitDescription {
    public static void main(String[] args) {
        UnitDescription desc = UnitDescription.basicUnit(Score.class, "ScoreData");
        desc.nextBean("ScoreData")
                .add("id", String.class)
                .add("shop", UID.class)
                .add("shopId", String.class)
                .add("shopName", String.class)
                .add("paying", Long.class)
                .add("score", Integer.class)
                .add("createTime", Long.class)
                .add("modifyTime", Long.class)
        ;
        desc
                .addUiFunction("save", "ScoreData")
                .addUiFunction("cancel", null)
        ;
        desc.run("./");
    }
}
